Page({
  onLoad({ title }) {
    this.getBuilding(title)
  },
  //伪造选择楼栋
  getBuilding(title) {
    const minCeiled = Math.ceil(4);
    const maxFloored = Math.floor(10);
    const size = Math.floor(Math.random() * (maxFloored - minCeiled+1) + minCeiled); // 不包含最大值，包含最小值
    const type = size>7?'号楼':'栋'
    this.setData({
      title: title,
      size: size,
      type:type
    })
  }
})